package server.util;

import java.io.PrintWriter;

import player.Player;

/**
 *
 * @author Michael Hanns
 *
 */
public interface Broadcaster {

    public void addConnection(Player p, PrintWriter out);
    
    public void addConnection(PlayerConnection out);

    public boolean broadcastToPlayer(Player p, String text);

    public void broadcastToAllPlayers(String text);

    public void broadcastLocalToPlayer(Player p, String text);

    public void broadcastLocalToPlayers(Player[] p, String text);

    public void broadcastToRoom(int x, int y, int z, String text);

    public void broadcastOnChannel(String channel, String text, String author);

    public void broadcastTickNotification();

    public void broadcastServerMessage(String text);

}
